package feng.demo.entity;

import java.util.Date;
import java.util.List;

public class Commodity {
    private Integer comid;
    private String comname;
    private String comsn;
    private Double price;
    private User user;
    private Date tmake;
    private Type type;
    private Integer pic;
    private String makers;
    private Integer sales;
    private Integer stock;
    private String info;
    private List<Remark> remarks;
    public Commodity() {
        this.tmake=new Date();
        this.user=new User();
        this.type=new Type();
    }

    public List<Remark> getRemarks() {
        return remarks;
    }

    public void setRemarks(List<Remark> remarks) {
        this.remarks = remarks;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getComid() {
        return comid;
    }

    public void setComid(Integer comid) {
        this.comid = comid;
    }

    public String getComname() {
        return comname;
    }

    public void setComname(String comname) {
        this.comname = comname;
    }

    public String getComsn() {
        return comsn;
    }

    public void setComsn(String comsn) {
        this.comsn = comsn;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getTmake() {
        return tmake;
    }

    public void setTmake(Date tmake) {
        this.tmake = tmake;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Integer getPic() {
        return pic;
    }

    public void setPic(Integer pic) {
        this.pic = pic;
    }

    public String getMakers() {
        return makers;
    }

    public void setMakers(String makers) {
        this.makers = makers;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "comid=" + comid +
                ", comname='" + comname + '\'' +
                ", comsn='" + comsn + '\'' +
                ", price=" + price +
                ", user=" + user +
                ", tmake=" + tmake +
                ", type=" + type +
                ", pic=" + pic +
                ", makers='" + makers + '\'' +
                ", sales=" + sales +
                ", stock=" + stock +
                ", info='" + info + '\'' +
                '}';
    }
}
